<?php
class Tag extends AppModel {
	var $name = 'Tag';
	
	var $hasAndBelongsToMany = array(
		'Post' => array(
			'className' => 'Post',
			'joinTable' => 'posts_tags',
			'foreignKey' => 'tag_id',
			'associationForeignKey' => 'post_id',
			'order' => 'Tag.title ASC',
			'unique' => true,
		),
	);
}
?>